{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "# 仪表盘的使用\n",
    "from pyecharts.charts import Gauge\n",
    "from pyecharts import options as opts"
   ],
   "outputs": [],
   "execution_count": null
  },
  {
   "metadata": {},
   "cell_type": "code",
   "source": [
    "#创建实例\n",
    "guage = Gauge()\n",
    "# 添加数据\n",
    "guage.add('',[('出勤率',80)])\n",
    "guage.set_global_opts(title_opts=opts.TitleOpts(title='出勤率'))\n",
    "\n",
    "guage.render_notebook()"
   ],
   "id": "f524c4f44ce6a76",
   "outputs": [],
   "execution_count": null
  },
  {
   "metadata": {},
   "cell_type": "code",
   "source": "",
   "id": "87f441c3e0c3535e",
   "outputs": [],
   "execution_count": null
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
